//
//  GasHomeCell.m
//  NtoccDriverNew
//
//  Created by niyongsheng on 2022/10/17.
//  Copyright © 2022 GCY. All rights reserved.
//

#import "GasHomeCell.h"

@interface GasHomeCell ()
@property (weak, nonatomic) IBOutlet UILabel *label1;
@property (weak, nonatomic) IBOutlet UILabel *label2;
@property (weak, nonatomic) IBOutlet UILabel *label3;
@property (weak, nonatomic) IBOutlet UILabel *label4;
@property (weak, nonatomic) IBOutlet UILabel *label5;

@end

@implementation GasHomeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(GasHomeModel *)model {
    _model = model;
    
    _label1.text = model.oilsName;
    _label2.text = model.oilsShortName;
    _label3.text = model.oilsType == 0 ? @"柴油" : @"汽油";
//    _label4.text = model.oilsPrice;
    _label4.text = [NSString stringWithFormat:@"%.2f", model.oilsPrice.floatValue];
    _label5.text = model.priceAreaName;
}

@end
